<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	{
		// 数组
		// const arr = [1,2,3,4];
		// console.log(arr.includes(3));// true
		// console.log(arr.includes(30));// false
		
		const arr = [{a:1},{a:2},{a:3}];
		// console.log(arr.includes({a:3}));// 不行
		// arr.find(v=>v.a === 3)
	}
	{
		// 字符串
		const str = "123";
		console.log(str.includes("1"))
	}
</script>
</html>